/**
 * Created by yunyang on 13-10-28.
 */

var file_model = require('../model/file');

exports.list = function(req, res){
        res.render('list',{"uid":req.query.uid});
};

exports.getFileList = function(req,res){
    var uid =  req.query.uid;
    file_model.getFileList(uid,function(data){
        console.dir(data);
        res.json(data);
    });
}